import 'package:flutter3x/demo/clock_screen.dart';
import 'package:flutter3x/demo/form_demo.dart';
import 'package:flutter3x/demo/material_commponents.dart';
import 'package:flutter3x/demo/navigator_demo.dart';
import 'package:flutter3x/main.dart';
import 'package:get/get.dart';

class RouteConfig {
  static const String main = '/';
  static const String newsname = '/newsname';
  static const String from = '/from';
  static const String clockscreen = '/clockscreen';
  static const String mdc = '/mdc';

  
  static final List<GetPage> getPages = [
    /// 配置页面路由的类
    GetPage(
      // 路由名称，用于导航到此页面
      name: main,
      
      // 创建页面实例的函数，这里返回一个常量Home实例
      page: () => const Home(),
      
      // 页面切换时的过渡动画类型，这里使用淡入效果
      transition: Transition.fadeIn,
    ),
    GetPage(
      name: newsname,
      page: () => const Pages(title: '新路由',),
      transition: Transition.fadeIn,
    ),
    GetPage(
      name: from,
      page: () => const FormDemo(),
    ),
    GetPage(
      name: clockscreen,
      page: () => const ClockScreen(),
    ),
    GetPage(
      name: mdc,
      page: () => const MaterialComponents(),
    ),
  ];
}